package cn.joeg.app;


import com.ecfront.dew.core.cluster.spi.redis.RedisClusterCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;


@SpringBootApplication
@EnableTransactionManagement
@ComponentScan(basePackageClasses = {RedisClusterCache.class})
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableScheduling
public abstract class AppAplication {

    @Autowired
    private GCore gCore;

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
